<template>
  <div>
    <headers :headers="headers"></headers>
    <div class="section">
      <div class="art-box card mt20 p12">
        <div class="clearfix">
          <div class="left">
            <p class="name">小轩雅儿</p>
            <div class="box">
              <div class="btn btn-bg-blue btn-h26">打电话</div>
              <div class="btn btn-bg-green btn-h26">加微信</div>
            </div>
          </div>
          <div class="right">
            <img src="@/assets/images/head.jpg" class="head">
            <p class="color-blue fs12" style="text-align:right;">编辑名片</p>
          </div>
        </div>
      </div>
      <div class="art-box mt20 p12 edit-desc">
        <textarea placeholder="赶紧完善个人介绍，让客户了解到您，前往添加。"></textarea>
        <p class="clearfix"><span class="right color-blue fs12">编辑简介</span></p>
      </div>
    </div>
  </div>
</template>

<script>
import Headers from '@/components/Headers'

export default {
  name: 'MyCard',
  data () {
    return {
      headers: {
        left: require('@/assets/images/icon-close.png'),
        title: '编辑个人信息'
      }
    }
  },
  beforeCreate: function () {
    let _this = this
    this.axios({
      method: 'post',
      url: this.publicUrl + 'user/findUserInfo',
      data: {
        'token': '',
        'timestamp': Date.parse(new Date()),
        'sign': ''
      }
    }).then(function (res) {
      console.log(res)
      if (res.status === 200) {
        _this.datas = res.data.data
      }
    }).catch(function (error) {
      console.log(error)
    })
  },
  components: {
    Headers
  }
}
</script>
